package com.buyantech.smweb.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import javacommon.base.BaseEntity;
/**
 * 获取积分
 */
@Entity
@Table(name = "ObtainIntegral")
public class ObtainIntegral extends BaseEntity implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;

	private String id;
	private String userid;	  //用户id
	private String username;  //用户id
	private int number;       //获取积分
	private int type;		  //类型  1自己获取2管理员增减  3要求获取积分4下线分成积分5分享奖励
	private String crdate;    //创建时间
	private String remark;    //联盟名称
	private int fnumber;    ////实际积分
	private String IP;       
	private String childid; //下线的id  
	private String version;//版本号
	private String appName;//版本号
	
	public static final String FORMAT_REGDATE = DATE_FORMAT;

	@Id @GeneratedValue(generator="uuid-id")
	@GenericGenerator(name="uuid-id", strategy = "uuid")
	@Column(name = "id", unique = true, nullable = false, insertable = true, updatable = true, length = 128)
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public int getNumber() {
		return number;
	}

	public void setNumber(int number) {
		this.number = number;
	}

	public int getFnumber() {
		return fnumber;
	}

	public void setFnumber(int fnumber) {
		this.fnumber = fnumber;
	}
	
	public String getCrdate() {
		return crdate;
	}

	public void setCrdate(String crdate) {
		this.crdate = crdate;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}
	
	public String getIP() {
		return IP;
	}

	public void setIP(String IP) {
		this.IP = IP;
	}
	
	public String getChildid() {
		return childid;
	}

	public void setChildid(String childid) {
		this.childid = childid;
	}

	public void setVersion(String version) {
		this.version = version;
	}
	
	public String getVersion() {
		return version;
	}
	
	public void setAppName(String appName) {
		this.appName = appName;
	}
	
	public String getAppName() {
		return appName;
	}
}
